<?php /* Smarty version 2.6.16, created on 2009-04-22 22:51:58
         compiled from Inbox.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'messages', 'Inbox.html', 12, false),array('function', 'str_replace', 'Inbox.html', 17, false),array('function', 'url', 'Inbox.html', 40, false),array('function', 'module', 'Inbox.html', 41, false),array('function', 'language', 'Inbox.html', 50, false),array('modifier', 'process_code', 'Inbox.html', 49, false),array('modifier', 'default', 'Inbox.html', 49, false),array('modifier', 'date_format', 'Inbox.html', 53, false),)), $this); ?>
<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="border2">

			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header"><?php echo $this->_tpl_vars['sBoxTitle']; ?>
</td>
				</tr>
			</table>
			<br />
<div style="padding-left: 30px; font-size: 10pt; font-weight: bold;"><?php echo smarty_function_messages(array(), $this);?>
</div>
<?php if ($this->_tpl_vars['aMessenger']['0']): ?>
<!-- Start page navigation info -->
<table style="width: 100%;">
<tr>
    <td style="width: 50%; font-size: 9pt; text-align: left;" class="color"><?php echo smarty_function_str_replace(array('text' => "`viewing_apaging_fromrow_apaging_tor_589`",'aPaging_fromRow' => ($this->_tpl_vars['aPaging']['fromRow']),'aPaging_toRow' => ($this->_tpl_vars['aPaging']['toRow']),'aPaging_totalRows' => ($this->_tpl_vars['aPaging']['totalRows'])), $this);?>
</td>
    <td style="width: 50%; font-size: 9pt;" class="color"></td>
</tr>
</table>
<!-- End page navigation info -->
<br /><br />
<!-- Start inbox messages -->
<form name="myform" action="<?php echo $this->_tpl_vars['sUrl']; ?>
" method="post">
<?php $_from = $this->_tpl_vars['aMessenger']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['messages'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['messages']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['aItem']):
        $this->_foreach['messages']['iteration']++;
?>
<table style="width: 100%; margin-bottom: 3px;" class="<?php if ($this->_foreach['messages']['iteration'] % 2): ?>border13<?php else: ?>border2<?php endif; ?>" cellpadding="2" cellspacing="2">
<tbody>

    <tr>
        <td style="font-size: 8pt; width: 5%; text-align: center;" class="color">
            <input name="id[]" value="<?php echo $this->_tpl_vars['aItem']['id']; ?>
" type="checkbox" style="border:0" />
        </td>
        <td style="font-size: 8pt; width: 15%; text-align: center;">
        <?php if ($this->_tpl_vars['sBoxName'] == 'sentbox'): ?>
            <?php $this->assign('sUs', $this->_tpl_vars['aItem']['to']); ?>
        <?php else: ?>
            <?php $this->assign('sUs', $this->_tpl_vars['aItem']['from']); ?>
        <?php endif; ?>
        <?php if ($this->_tpl_vars['sUs'] != 'System'): ?>
            <a href="<?php echo smarty_function_url(array('link' => "public.user",'name' => $this->_tpl_vars['sUs']), $this);?>
">
            <?php echo smarty_function_module(array('module' => 'Account','component' => 'Avatar','sUser' => $this->_tpl_vars['sUs'],'iSize' => 50,'class' => 'pic1','onmouseover' => "showInfo5('".($this->_tpl_vars['sUs'])."', '', '');this.className='pic2';",'onmouseout' => "this.className='pic1';return nd();"), $this);?>

            </a>
        <?php else: ?>
        <img src="/design/pic/noimage_50.jpg">	
        <?php endif; ?>
        </td>
        <td style="font-size: 7pt; width: 80%;">

			<a class="link_description" href="<?php echo smarty_function_url(array('link' => $this->_tpl_vars['sUrlView'],'box' => $this->_tpl_vars['sBoxName'],'id' => $this->_tpl_vars['aItem']['id']), $this);?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['aItem']['title'])) ? $this->_run_mod_handler('process_code', true, $_tmp) : smarty_modifier_process_code($_tmp)))) ? $this->_run_mod_handler('default', true, $_tmp) : smarty_modifier_default($_tmp)); ?>

				<?php if (! $this->_tpl_vars['aItem']['seen']): ?><span style="font-size: 8pt;"><?php if ($this->_tpl_vars['sBoxName'] == 'sentbox'): ?>( <?php echo smarty_function_language(array('text' => 'unread'), $this);?>
 )<?php else: ?>( <?php echo smarty_function_language(array('text' => 'new'), $this);?>
 )<?php endif; ?></span><?php endif; ?></a>

            <br /><br />
            <?php if ($this->_tpl_vars['sBoxName'] == 'sentbox'):  echo smarty_function_language(array('text' => 'to'), $this); else:  echo smarty_function_language(array('text' => 'from_503'), $this); endif;  if ($this->_tpl_vars['sUs'] != 'System'): ?><a class="link_description_small" href="<?php echo smarty_function_url(array('link' => "public.user",'name' => $this->_tpl_vars['sUs']), $this);?>
"><?php if ($this->_tpl_vars['sBoxName'] == 'sentbox'): ?> <?php echo $this->_tpl_vars['aItem']['to'];  else: ?> <?php echo $this->_tpl_vars['aItem']['from'];  endif; ?></a><?php else: ?> <b>System</b><?php endif; ?> <?php echo smarty_function_language(array('text' => 'on_605'), $this);?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['sDateTimeFormat']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['sDateTimeFormat'])); ?>

        </td>
    </tr>
</tbody>
</table>
<?php endforeach; endif; unset($_from); ?>
<br />
<br />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sMainTemplatePath'])."/_blocks/pager.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<br />
<br />
<input value="<?php echo smarty_function_language(array('text' => 'delete_message_s'), $this);?>
" type="submit" onclick="return checkEmpty();" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />&nbsp;
<a href="javascript:void(0);" class="link_action" onclick="sel();">[ <?php echo smarty_function_language(array('text' => 'check_all'), $this);?>
 ]</a>
</form>
<!-- End inbox messages -->
<?php else: ?>
<div class="message_info"><?php echo smarty_function_language(array('text' => 'there_are_no_messages_yet'), $this);?>
</div>
<?php endif; ?>

		</td>
	</tr>
</table>